#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QProcess>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_selectPath_clicked();

    void on_scanFile_clicked();

    void on_compare_clicked();

    void on_deleteFile_clicked();

private:
    Ui::MainWindow *ui;
    void getAllFilesInDirectory(const QString &dirPath, QStringList &fileList);
    void findMatchingFiles(const QStringList &filePaths, QMap<QString, QString> &matchingPairs);
    bool hasCorrectExtension(const QString &filePath, const QString &extension);
    bool isImageLargerOrEqual(const QString &filePath1, const QString &filePath2);
};
#endif // MAINWINDOW_H
